<%@ page import="com.webamc.common.enums.Fields" %>
<%@ page import="com.webamc.common.enums.Params" %>
<%@ page import="com.webamc.model.Order" %>
<%@ page import="com.webamc.util.CommonUtil" %>
<%
    Order order = (Order) request.getAttribute(Params.BEAN);
    if (order == null) {
%><p class="header-divsmall">No order, <a href="order.html?action=browse">click here</a> to browse list.</p>
<%
        return;
    }
%>
<tr>
    <td>OrderId</td>
    <td><%=order.getOrderId()%>
    </td>
</tr>
<tr>
    <td>ProductId</td>
    <td><%=order.getProductName()%>
    </td>
</tr>
<tr>
    <td>ProductSerial</td>
    <td><%=CommonUtil.out(order.getProductSerial())%>
    </td>
</tr>
<tr>
    <td>CustomerId</td>
    <td><%=order.getCustomerId()%>
    </td>
</tr>
<tr>
    <td>Status</td>
    <td><%=CommonUtil.out(order.getStatus())%>
    </td>
</tr>
<tr>
    <td>Description</td>
    <td><%=CommonUtil.out(order.getDescription())%>
    </td>
</tr>
<tr>
    <td>Remarks</td>
    <td><%=CommonUtil.out(order.getRemarks())%>
    </td>
</tr>
<tr>
    <td>Version</td>
    <td><%=order.getVersion()%>
    </td>
</tr>
<tr>
    <td>Create Date</td>
    <td><%=CommonUtil.getDateString(order.getCreateDate())%>
    </td>
</tr>
<tr>
    <td>LastUpdated</td>
    <td><%=CommonUtil.getDateString(order.getLastUpdated())%>
    </td>
</tr>
<tr>
    <td>LastUpdatedId</td>
    <td>
        <a href="user.html?action=view&<%=Fields.USERID%>=<%=order.getLastUpdatedById()%>">
            <%=order.getLastUpdatedById()%>
        </a>
    </td>
</tr>
